package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Index;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.TableIndexes;

import java.util.Date;

/**
 * Created by likole on 8/1/18.
 * 金钱记录
 */
@Table("money_log")
@TableIndexes(@Index(fields = "userId",unique = false))
public class MoneyLog {

    /**
     * 用户id
     */
    @Column
    private int userId;

    /**
     * 变更记录
     */
    @Column
    private int changeLog;

    /**
     * 变更原因
     */
    @Column
    private String reason;

    /**
     * 时间
     */
    @Column
    private Date time;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getChangeLog() {
        return changeLog;
    }

    public void setChangeLog(int changeLog) {
        this.changeLog = changeLog;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
